export function getRedirectPath({type, avatar}){
  let url = (type==='boss') ? '/boss' : '/genius'
  if(!avatar){
    url += 'info'
  }
  return url
}

export function getChatId(id1,id2){
  return [id1,id2].sort().join('_')
}